package org.fast.develop.logicflow.runtime.expression.el;

/**
 * 项 目 名：gs-tto-data-mapping
 * 源文件名：com.geekstorm.tto.datamapping.core.expression.GsElContext
 * 文件版本：1.0.0
 * 创建人： 莫寅
 * 创建日期：2020-07-23 11:45
 * 修改作者：莫寅
 * 修改日期：2020-07-23 11:45
 * 文件描述：
 * By：2020 © CompanyName  , Inc. All Rights Reserved.
 */

import javax.el.ELContext;
import javax.el.ELResolver;
import javax.el.FunctionMapper;
import javax.el.VariableMapper;

/**
 * @author Tom Baeyens
 * @author Joram Barrez
 */
public class GsElContext extends ELContext {

	protected ELResolver elResolver;

	public GsElContext(ELResolver elResolver) {
		this.elResolver = elResolver;
	}

	@Override
	public ELResolver getELResolver() {
		return elResolver;
	}

	@Override
	public FunctionMapper getFunctionMapper() {
		return new GsFunctionMapper();
	}

	@Override
	public VariableMapper getVariableMapper() {
		return null;
	}

}
